-- GENERATED SPELL FOR [Skarvald the Constructor] --


function spell0_27390(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(43651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27390', 2252, 1)
end

function spell1_27390(pUnit, Event) --@Stone Strike,n/a--
pUnit:FullCastSpellOnTarget(48583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27390', 597, 1)
end

function Sorts_27390(pUnit, Event)
local choix_sorts_27390 = math.random(0, 1)
if choix_sorts_27390 == 0 then
pUnit:RegisterEvent('spell0_27390', 1, 1)
end
if choix_sorts_27390 == 1 then
pUnit:RegisterEvent('spell1_27390', 1, 1)
end
end

function mob27390_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27390', math.random(1500, 3000), 1)
end

function mob27390_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27390_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27390_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27390, 1, 'mob27390_Action')
RegisterUnitEvent(27390, 2, 'mob27390_Leave')
RegisterUnitEvent(27390, 3, 'mob27390_Kill')
RegisterUnitEvent(27390, 4, 'mob27390_Die')
